#ifndef KEG_H
#define KEG_H

#include <sys/select.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <assert.h>
#include <math.h>
#include <pthread.h>

#define MAX_CLIENTS 4
#define PORT 9876
#define MAX_CLIENT_NAME 15
#define MAX_RW 8

#define MAX(x,y) x > y ? x : y

fd_set rfd, c_rfd;/*file descriptor set and copy*/
int sockfd, client_sockfd, maxFD, numClients;
char buf[BUFSIZ];

typedef struct client_info
{
	int fd;
	char name[MAX_CLIENT_NAME];
	char msg[BUFSIZ];
} client_info;

void shout(char*);
void kickClients(void);

client_info* client_array[MAX_CLIENTS];

#endif
